<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>3_放大与过渡</title>
    <style>
        div{
            width: 100px;
            height: 100px;
            background-color: red;
            margin: 100px auto 0;
            /*增加过渡时间*/
            transition: all 2s;
        }
        div:hover{
            background-color: #0aa1ed;
            /*悬停是修改形状为圆形*/
            border-radius: 50px;
            /*交换：缩放 n>1放大n倍 n=1大小不变 n<1缩小n倍 n=0为隐藏*/
            transform: scale(2) rotate(360deg);/*rotate旋转*/

        }
    </style>
</head>
<body>
<div></div>
</body>
</html>